package com.example.demo;

import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/user")
public class UserController {

    @GetMapping("findById")
    public User findById(@RequestParam long id) {
        return new User(id, "KK" + id);
    }

}
